<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String link=request.getParameter("link");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="<%=basePath%>css/Login_style.css" />
<script type="text/javascript" src="<%=basePath%>js/Login_javascript.js"></script>
<script type="text/javascript" src="<%=basePath%>js/jquery-1.8.2.min.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
  		$("#id").focus(function(){
  			  $("#msg").hide();
 		});
  		$("#password").focus(function(){
  			  $("#msg").hide();
 		});
});
</script>
</head>
<body>
<h1 align="center">协作学习管理系统</h1>
<div class="login_frame"></div>
<div class="LoginWindow">
  <div>
    <form method="post" action="<%=basePath%>LoginServlet" onsubmit="return user_input()" class="login">
    <p align="center">
      <label for="msg" style="color: red;" id="msg">${msg}</label>
    </p>
    
    <p>
      <label for="login">帐号:</label>
      <input type="text" name="id" id="id" value="">
    </p>

    <p>
      <label for="password">密码:</label>
      <input type="password" name="password" id="password" value="">
    </p>

    <p class="login-submit">
      <button type="submit" class="login-button">登录</button>
    </p>
	<input type="hidden" name="link" value="<%=link%>"/>
    </form>
    <p class="registration"><a href="register.jsp">注册</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="findPWD.jsp">找回密码</a></p>
  </div>
</div>

<div id="timeArea"><script> LoadBlogParts();</script></div>
</body>
</html>